package com.atkid.boot.handler;

import cn.yueshutong.springbootstartercurrentlimiting.annotation.CurrentLimiter;
import cn.yueshutong.springbootstartercurrentlimiting.handler.CurrentAspectHandler;
import com.atkid.boot.result.Result;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.stereotype.Component;

@Component
public class MyCurrentLimitHandler implements CurrentAspectHandler {
  @Override
  public Result around(ProceedingJoinPoint pjp, CurrentLimiter rateLimiter)  {
    return Result.error().message("系统繁忙，请稍后再试！");
  }
}

